{%include file="m.index.header.tpl.php"%}
<!--主体部分-->

<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
    <form action="" method="get">
      <div class="col-sm-12 distance" >
        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">行为类别：</label>
          <div class="col-sm-10">
            <select class="form-control" name="award_type">
              <option value="">全部</option>
              <option value="2" {%if $award_type=='2'%}selected{%/if%}> 违规行为</option>
              <option value="1" {%if $award_type=='1'%}selected{%/if%}> 奖励行为</option>
            </select>
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance" >
        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">班级名称:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="class_name" value="{%$class_name%}">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy" >
        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">开始日期:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$from%}" id="datepicker" name="from">

          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy2" >
        <div class="form-group">
          <label for="inputEmail3" class="col-sm-2 control-label">结束日期:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$to%}" id="datepicker2" name="to">
          </div>
        </div>
      </div>
      <div class="col-xs-12  distance hierarchy2">
        <div class="form-group text-center" style="padding-top:0px;">
          <input type="hidden" name="a"  value="award.classinquirelist">
          <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
        </div>
      </div>
    </form>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
    {%if $where neq '' %}
    {%foreach from=$clas_lists key=key item=value%}
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>班级</td>
        <td>{%$value.class_name%}</td>
      </tr>
      <tr>
        <td>行为类别</td>
        <td>{%$value.award_type%}</td>
      </tr>
      <tr>
        <td>行为项目</td>
        <td>{%$value.award_title%}</td>
      </tr>
      <tr>
        <td>学分</td>
        <td>{%$value.award_credit%}</td>
      </tr>
      <tr>
        <td>日期</td>
        <td>{%$value.create_time%}</td>
      </tr>
    </table>
    {%/foreach%}
{%/if%}
  </div>
</div>
<!--container  end--> 

<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end--> 

<!--底部end--> 
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script> 
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script> 
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历--> 

<!--日历--> 
<script>
  $(function() {
    $( "#datepicker" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
	$( "#datepicker2" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
  });
  </script>
</body>
</html>
